<?php
	include('header.php');
?>
<h2><?php echo $title; ?></h2>
<table>
	<tr>
		<?php 
			$i = 0;
			$countList = count($menu);

			foreach ($menu as $id => $list) 
			{
				// 10 cột s/p 1 dòng
				if( $i == 0 )
				{
					echo "<tr>";
				}
				else if( $i == 10 )
				{
					echo "</tr><tr>";
					$i = 0;
				}
				else if( $i == $countList )
				{
					echo "</tr>";
				}
				echo '<th><img src="'.base_url('uploads/'.$list['picture']).'" height="150px" width="150px"/><br><a href="'.site_url('home/menu/'.$id).'">'.$list['food'].'</a></th>';
				$i++;
			}
		?>
	</tr>
</table>